<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title><%= APP_NAME.t %></title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <%= stylesheet_link_tag DEFAULT_STYLESHEET %>
    <%= javascript_include_tag 'application' %>
    <script type="text/javascript">
        if(IE)
        {
            window.onload = ResizeContentDiv;
            window.onresize = ResizeContentDiv;
        }
    </script>
</head>
<body>

    <div id="top">
        <div class="header">
            <div class="userSettings">
                <%= render_partial 'shared/logged_in_user_menu' %>
            </div>

            <div class="search">
                <%= render_partial 'shared/search_form' %>
            </div>
        </div>

        <div class="topNavigation">
            <div class="links">
                <%= render_partial 'shared/go_to_menu' %>
            </div>
        </div>
    </div>

    <div id="middle">
        <div class="actionLinks">
            <% if @logged_in_user.is_admin? %>
            <%= link_to 'Create group'.t, { :action => 'new' } %>
            <% end %>
        </div>

        <div class="content">
            <table cellspacing="0" cellpadding="0">
                <tr>
                    <td>
                        <%= yield %>
                    </td>
                </tr>
            </table>
        </div>
    </div>

    <div id="bottom">
      <div class="footer">
        <%= COPYRIGHT_NOTICE %>
      </div>
    </div>

</body>
</html>